package com.frost.book.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/t1")
    public Integer t1() {
        return 1;
    }

    @RequestMapping("/t2")
    public String t2() {
//        String s = null;
//        System.out.println(s.length());
        return "frost";
    }

    @RequestMapping("/t3")
    public boolean t3() {
        System.out.println(1 / 0);
        return true;
    }

}
